<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <script type="text/javascript" src="../jsunit/app/jsUnitCore.js"></script>
    <script type="text/javascript" src="../../src/objx.test.js"></script>
    <script type="text/javascript" src="../../src/objx.js"></script>
    <script type="text/javascript">

		function test_methodClass()
		{
			assertNotUndefined("objx.Method", objx.Method);
			assertEquals("objx.Method not an objx Class.", "c", objx.Method.objx.t);
		}

        function test_methodArgumentCount()
        {
        
            var m = new objx.Method([1]);
            
            assertEquals(1, m.argc);
            
        }
        
        function test_methodTypeIsM()
        {
        
            var m = new objx.Method([0]);
        
            assertEquals("m", m.objx.t);        
        }
        
        function test_methodArgumentNames()
        {
        
            var m = new objx.Method(["name", "age", "email"]);
        
            assertEquals(3, m.signature.length);
            assertEquals("name", m.signature[0]);
            assertEquals("age", m.signature[1]);
            assertEquals("email", m.signature[2]);
        
            assertNull(m.argc);
                   
        }
    
    </script>
</head>
<body>
</body>
</html>